package logic.util;

import org.geometerplus.zlibrary.core.options.ZLIntegerRangeOption;
import org.geometerplus.zlibrary.text.view.style.ZLTextStyleCollection;

/**
 * 获取FBreader的一些参数
 * 
 * @author Administrator
 * 
 */
public class BookSetting {

	static final ZLIntegerRangeOption option = ZLTextStyleCollection.Instance()
			.getBaseStyle().FontSizeOption;
	
	private static int MarginVlaue;

	private static final ZLIntegerRangeOption LineSpace  = ZLTextStyleCollection.Instance().getBaseStyle().LineSpaceOption;

	/**
	 * 获取字体大小
	 * 
	 * @return
	 */
	public static int getFontSize() {
		return option.getValue();
	}

	public static void SetMargin(int Value) {
		MarginVlaue = Value;
	}

	/**
	 * 获取边缘空的值
	 * 
	 * @return
	 */
	public static int getMarginVlaue() {
		return MarginVlaue;
	}
	
	/**
	 * 获取行的间距
	 * @return
	 */
	public static int getLineSpaceValue(){
		return LineSpace.getValue();
	}

}
